//
//  ONCommonManager.swift
//  OnceNectar
//
//  Created by Zhang Dream on 17/06/2018.
//  Copyright © 2018 com.inwhoop. All rights reserved.
//

import Foundation

class ONCommonManager: NSObject{
    static func checkHasLoginIn(topVc: UINavigationController?) -> Bool{

        guard MineInfoModel.share.hasLoginIn() else {
            let loginVC = LoginViewController(nibName: "\(LoginViewController.self)", bundle: nil)
            topVc?.pushViewController(loginVC, animated: true)
            return false
        }
       return true
    }

    static func checkStringEmpty(origin: String?) -> Bool{
        if origin != nil {
            return true
        }
        return false
    }
}
